/**************************************************************************
 *  Copyright (C) 2008 - 2010 by Simon Qian                               *
 *  SimonQian@SimonQian.com                                               *
 *                                                                        *
 *  Project:    Versaloon                                                 *
 *  File:       interfaces_const.h                                        *
 *  Author:     SimonQian                                                 *
 *  Versaion:   See changelog                                             *
 *  Purpose:    consts of interface module                                *
 *  License:    See license                                               *
 *------------------------------------------------------------------------*
 *  Change Log:                                                           *
 *      YYYY-MM-DD:     What(by Who)                                      *
 *      2011-04-08:     created(by SimonQian)                             *
 **************************************************************************/
#ifndef __M45X_INTERFACE_CONST_H_INCLUDED__
#define __M45X_INTERFACE_CONST_H_INCLUDED__

#define m45x_SLEEP_WFI			0
#define m45x_SLEEP_PWRDOWN		1

#define m45x_USART_MODE0
#define m45x_USART_MODE1
#define m45x_USART_MODE2
#define m45x_USART_MODE3
#define m45x_USART_CLKEN
#define m45x_USART_STOPBITS_0P5
#define m45x_USART_STOPBITS_1
#define m45x_USART_STOPBITS_1P5
#define m45x_USART_STOPBITS_2
#define m45x_USART_PARITY_NONE
#define m45x_USART_PARITY_ODD
#define m45x_USART_PARITY_EVEN

#define m45x_SPI_MASTER
#define m45x_SPI_SLAVE
#define m45x_SPI_MODE0
#define m45x_SPI_MODE1
#define m45x_SPI_MODE2
#define m45x_SPI_MODE3
#define m45x_SPI_MSB_FIRST
#define m45x_SPI_LSB_FIRST

#define m45x_ADC_ALIGNLEFT
#define m45x_ADC_ALIGNRIGHT

#define m45x_GPIO_INFLOAT			0x00
#define m45x_GPIO_INPU				0x00
#define m45x_GPIO_INPD				0x00
#define m45x_GPIO_OUTPP				0x01
#define m45x_GPIO_OUTOD				0x02

#define m45x_EINT_ONFALL
#define m45x_EINT_ONRISE
#define m45x_EINT_INT
#define m45x_EINT_EVT

#define m45x_SDIO_RESP_NONE
#define m45x_SDIO_RESP_SHORT
#define m45x_SDIO_RESP_LONG

#endif	// __M45X_INTERFACE_CONST_H_INCLUDED__
